﻿@model IList<GenericCmsEntity>

@{
    ResFile = "cms_Content";
    int revisionsCount = Model.Count;
}

<div>

@foreach(var item in Model)
{
    <div class="b-form b-form__revs b-form_bordered b-form_theme_white">
	    <div class="b-form__head">
	    	<table width="100%">
	    		<tbody><tr>
	    			<td width="100"><b>@_("Revision"):</b> @revisionsCount</td>
                    <td width="300"><b>@_("Title"):</b> @item["ContentTitle"]</td>
	    			<td width="220"><b>@_("Author"):</b> @item["LastUpdatedBy_Firstname"] @item["LastUpdatedBy_Lastname"]</td>
	    			<td width="200"><b>@_("Time &amp; date"):</b> @item["DateLastUpdated"]</td>
            		<td><a href="@Url.Action("Preview", "CmsContent", new {id=item.Id})" class="">@_("Preview")</a></td>            		
	    		</tr>
	    	</tbody></table>
		</div>
    </div>
    revisionsCount--;
}

</div>